package demo1;

public class Test3 {
    public static void main(String[] args) {
        int test = test();
        System.out.println(test);

    }
    public static int test() {
        int a = 0;
        try {
            int b = 40/a;
            return 1;
        } catch (ArithmeticException e) {
            return 0;
        } finally {
            return -1;
        }
    }
}
